<?php
	
	 
$version = apache_get_version(); 
echo "$version\n"; 

	// echo file_put_contents("log.txt",$_SERVER['REMOTE_ADDR']);
	
	//echo $_SERVER['REMOTE_ADDR']

// include ("./Action/config.php");
// session_start();
// $id = $_SESSION['login_user'];
// if (isset($id)) {
	// if ($id == 'admin') {
		// header("location: ./manager_content.php");
	// } else {
		// header('location: ./user_content.php');
	// }
// }
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<title>Han Seok-bong Login Page</title>

		<script src="./Scripts/jquery-1.10.2.min.js"></script>
		<style type="text/css" media="screen">
			body {
				background-color: #EBEBEB;
				margin: 0 auto;
			}
			#login-box {
				margin: 0 auto;
			}
		</style>
		<link href="login-box.css" rel="stylesheet" type="text/css" />
	</head>

	<body>
		<form action="./Action/login_submit.php" method="post" accept-charset="utf-8">
			<div >
				<div id="login-box">
					<H2>Login</H2>
					Login page of Han seok-bong application that is available in Google Market
					<br />
					<br />
					<div id="login-box-name" style="margin-top:20px;">
						ID:
					</div>
					<div id="login-box-field" style="margin-top:20px;">
						<input name="id" class="form-login" title="Username" value="" size="30" maxlength="2048" />
					</div>
					<div id="login-box-name">
						Password:
					</div>
					<div id="login-box-field">
						<input name="password" type="password" class="form-login" title="Password" value="" size="30" maxlength="2048" />
					</div>
					<br />
					<br />
					<br />
					<input style="margin-left:90px;"  type="submit" value="SIGN IN"/>
					<input type="button" id="btn_sign_up" value="SIGN UP"/>
					<br />
						<!--
						<img src="images/login-btn.png" width="103" height="42" style="margin-left:90px;" >
						<input type="submit" value="SIGN IN"/></img>
						-->
				</div>

			</div>
		</form>
	</body>
	<script>
		$(document).ready(function() {
			//register.php로 넘겨서 회원가입을 할 수 있도록 한다.
			//추후 더욱 많은 정보를 입력할 수 있도록 변경한다.
			//현재는 아이디와 비밀번호만 받도록 한다.
			$('#btn_sign_up').click(function() {
				$(location).attr('href', './user_register.php');
			});
		});
	</script>
</html>
